home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 1 Issue 2 / PDCD-1 - Issue 02.iso / _utilities / utilities / 001 / src / shell / lib / Makefile
Encoding:
Makefile  |  1994-02-07  |  1.2 KB  |  40 lines

  1. # Makefile for library files used by GNU shell utilities.
  2. # Do not use this makefile directly, but only from `../Makefile'.
  3. # Copyright (C) 1991 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. OBJECTS = o.basename o.error o.stripslash o.xmalloc o.xstrdup
  20.  
  21. CC=        %gcc
  22. CFLAGS=    -DARCH -DHAVE_UNISTD_H -DSTDC_HEADERS -D_POSIX_VERSION
  23.  
  24. all: $(OBJECTS)
  25.  
  26. clean:
  27.     rm -f o.*
  28.  
  29. c.getdate: y.getdate
  30.     @echo expect 9 shift/reduce conflicts
  31.     bison -o c.getdate y.getdate
  32.  
  33. c.posixtm: y.posixtm
  34.     bison -o c.tmp_ptm y.posixtm
  35.     sed -e "s/yy/zz/g" c.tmp_ptm > c.posixtm
  36.     rm -f c.tmp_ptm
  37.  
  38. o.getopt1: h.getopt
  39. o.regex: h.regex
  40.